package com.microservices.cloud.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

@Mapper
public interface AccountDao {


    /**
     * 根据用户id，扣减账户信息
     *
     * @param userId
     * @param money
     * @return
     */
    Integer updateAccount(@Param("userId") Long userId, @Param("money") BigDecimal money);

}
